package com.tinycloud.miracll.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tinycloud.common.core.annotation.Excel;
import com.tinycloud.common.core.web.domain.BaseEntity;

/**
 * scada产线状态对象 devicestats
 * 
 * @author tiny
 * @date 2021-12-11
 */
public class Devicestats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batch;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orders;

    /** 品管号 */
    @Excel(name = "品管号")
    private String pgnumber;

    /** 产线 */
    @Excel(name = "产线")
    private String device;

    /** 开始生产时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始生产时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 结束生产时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束生产时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stoptime;

    /** 生产状态1-生产中 2-生产结束 */
    @Excel(name = "生产状态1-生产中 2-生产结束")
    private Long state;

    /** 产线类别 */
    @Excel(name = "产线类别")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBatch(String batch) 
    {
        this.batch = batch;
    }

    public String getBatch() 
    {
        return batch;
    }
    public void setOrders(String orders) 
    {
        this.orders = orders;
    }

    public String getOrders() 
    {
        return orders;
    }
    public void setPgnumber(String pgnumber) 
    {
        this.pgnumber = pgnumber;
    }

    public String getPgnumber() 
    {
        return pgnumber;
    }
    public void setDevice(String device) 
    {
        this.device = device;
    }

    public String getDevice() 
    {
        return device;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setStoptime(Date stoptime) 
    {
        this.stoptime = stoptime;
    }

    public Date getStoptime() 
    {
        return stoptime;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("batch", getBatch())
            .append("orders", getOrders())
            .append("pgnumber", getPgnumber())
            .append("device", getDevice())
            .append("starttime", getStarttime())
            .append("stoptime", getStoptime())
            .append("state", getState())
            .append("type", getType())
            .toString();
    }
}
